<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="commontaglib"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">

<html>
<head>
<link rel="stylesheet" href="<%=path%>/css/innerstyle.css"	type="text/css" />
<link rel="stylesheet" type="text/css" media="screen"	href="<%=path%>/css/ui-lightness/jquery-ui-1.8.23.custom.css" />

<script type="text/javascript" src="<%=path%>/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery-ui-1.8.23.custom.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/i18n/jquery.ui.datepicker-zh-CN.js"></script>
	<style type="text/css">

#tab{
	width:99%;
	border:#F4F4F4 solid 4px;
	padding:0 2px 3px 2px;
	margin:10px 0 0 0;
	float:left;
}
#tab h1{
	display:block;
	width:85%;
	height:65px;	
	float:left;
	text-align: center;
	padding-top:20px;
}
#tab h1 span{
	width:250px;
	font:bold 26px/55px Arial, Helvetica, sans-serif;
	color:#327C8E;
	background-color:#fff;
	display:block;
}
#tab h2{
	display:block;
	width:10%;
	height:65px;	
	float:left;
	padding-top:20px;
}
#tab h2 span{
	width:250px;
	font:bold 26px/55px Arial, Helvetica, sans-serif;
	color:#000;
	background-color:#fff;
	display:block;
}
.content1
{
	margin:0px;	
	padding:0px;
	width:100%;	
	font-size:12px;	
}
.content1 td
{    
    height:16px;
	line-height:16px;
	text-align:left;
	border-top-style:none;
	border-left-style:none;
	border-right-style:none;
	border-bottom-style:none;
}
label{ display:block; }
fieldset { padding:0; border:0; margin-top:25px; }
</style>
<style media=print type="text/css">   
.noprint{visibility:hidden}   
</style>
</head>




<script type='text/javascript'>
    
    
    $(function (){	
  	    $("#guanbi").button();  
  	    $("#dayin").button();  	    
	});
	
	
    var hkey_root,hkey_path,hkey_key
	hkey_root="HKEY_CURRENT_USER"
	hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\"
	//设置网页打印的页眉页脚为空
	function pagesetup_null(){
	try{
	var RegWsh = new ActiveXObject("WScript.Shell")
	hkey_key="header" 
	RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
	hkey_key="footer"
	RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
	}catch(e){}
	}
  
  	
	
</script>
<body>
<OBJECT   id=WebBrowser   classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2   height=0   width=0> </OBJECT>
	<div id="tab">
		<h1><s:if test="htinfo.zhuangt>2">煤  炭 买 卖 合 同 </s:if><s:else>邀 约 合 同 报 单</s:else></h1>	
		<h2><span align=bottom>(${htinfo.hetxsname})</span></h2>
			<table id="list_search" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="120">出卖人（销方）:</td>
					<td width="30%">${htinfo.chumdwmc}</td>
					<td width="120">合同编号:</td>
					<td width="20%">${htinfo.hetlrbh}</td>
					<td width="150">出省站/营业站:</td>
					<td >${htinfo.yingyzhmjglz}</td>
				</tr>

				<tr>
					<td>买受人（购方）:</td>
					<td>${htinfo.maisdwmc}</td>
					<td>签约地点:</td>
					<td>中国(太原)煤炭交易中心	</td>
					<td>到达省、地（市）:</td>
					<td>${htinfo.daodssdname}</td>
				</tr>

				<tr>
					<td>发货单位:</td>
					<td>${htinfo.fahdwmc}</td>
					<td>签订时间:</td>
					<td>${htinfo.qianysj}</td>
					<td>隶属行业:</td>
					<td>${htinfo.hangylsname}</td>
				</tr>

				<tr>
					<td colspan="6" style="padding-top:5px;">一、收货人名称、发到站、品种规格、质量、交（提）货时间、数量
					</td>
				</tr>
				<tr>
					<td colspan="6" style="padding:1px;">
						<table id="changdi" align="center" cellpadding="0" cellspacing="0" border="1"
							class="content_gridview" >
							<thead>
								<tr>
									<th rowspan="3">收货人名称</th>
									<th rowspan="3">品种规格</th>
									<th rowspan="3">质量指标</th>
									<th rowspan="3">价格<br/>(元/吨)</th>
									<th colspan="13">交（提）货时间、煤量（吨）</th>

								</tr>
								<tr>
									<th rowspan="2">全年合计</th>
									<th colspan="3">一季度</th>
									<th colspan="3">二季度</th>
									<th colspan="3">三季度</th>
									<th colspan="3">四季度</th>
								</tr>
								<tr>
									<th>1</th>
									<th>2</th>
									<th>3</th>
									<th>4</th>
									<th>5</th>
									<th>6</th>
									<th>7</th>
									<th>8</th>
									<th>9</th>
									<th>10</th>
									<th>11</th>
									<th>12</th>
								</tr>
							</thead>
							<tbody>
								<s:iterator value="htkz" status="i">
									<tr>
										<td>${shouhdwmc}</td>
										<td>${pinzgg}</td>
										<td>${zhilzb}</td>
										<td>${jiag}</td>
										<td>${shul}</td>
										<td>${gml1}</td>
										<td>${gml2}</td>
										<td>${gml3}</td>
										<td>${gml4}</td>
										<td>${gml5}</td>
										<td>${gml6}</td>
										<td>${gml7}</td>
										<td>${gml8}</td>
										<td>${gml9}</td>
										<td>${gml10}</td>
										<td>${gml11}</td>
										<td>${gml12}</td>
									</tr>
								</s:iterator>
							</tbody>
						</table></td>
				</tr>

				<tr>
					<td colspan="6">
						<table id="djtk" cellpadding="0" cellspacing="0"  border rules=rows frame=below >

							<s:iterator value="djtk">
								<tr>
									<td>${tkh} ${biaot}</td>
									<td>${neir}</td>
								</tr>
							</s:iterator>
						</table></td>
				</tr>
				<tr>
					<td colspan="6">
						<table cellpadding="0" cellspacing="0" style="width:100%" border="1"
							class="content_gridview">
							<thead>
								<tr>
									<th colspan="2">出卖人</th>
									<th colspan="2">买受人</th>
									<th>鉴（公）证单位：</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>
										<table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>出卖人名称(章)：</td>
												<td>${htinfo.chumdwmc}</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>${htinfo.chumdwdz}</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>${htinfo.chumdwfddbr}</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>${htinfo.chumdwwtdlr}</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>${htinfo.chumdwdh}</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>${htinfo.chumdwcz}</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>${htinfo.chumdwyzbm}</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>${htinfo.chumdwkhyh}</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>${htinfo.chumdwzh}</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>${htinfo.chumdwnsrdjh}</td>
											</tr>

										</table></td>
									<td><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>出卖人结算单位名称(章)：</td>
												<td>${htinfo.chumdwjsrmc}</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>${htinfo.chumdwjsrdz}</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>${htinfo.chumdwjsrfddbr}</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>${htinfo.chumdwjsrwtdlr}</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>${htinfo.chumdwjsrdh}</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>${htinfo.chumdwjsrcz}</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>${htinfo.chumdwjsryzbm}</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>${htinfo.chumdwjsrkhyh}</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>${htinfo.chumdwjsrzh}</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>${htinfo.chumdwjsrnsrdjh}</td>
											</tr>

										</table>
									</td>
									<td><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>买受人名称(章)：</td>
												<td>${htinfo.maisdwmc}</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>${htinfo.maisdwdz}</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>${htinfo.maisdwfddbr}
												</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>${htinfo.maisdwwtdlr}
												</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>${htinfo.maisdwdh}</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>${htinfo.maisdwcz}</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>${htinfo.maisdwyzbm}</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>${htinfo.maisdwkhyh}</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>${htinfo.maisdwzh}</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>${htinfo.maisdwnsrdjh}
												</td>
											</tr>

										</table>
									</td>
									<td><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>买受人结算单位名称(章)：</td>
												<td>${htinfo.maisdwjsrmc}</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>${htinfo.maisdwjsrdz}</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>${htinfo.maisdwjsrfddbr}</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>${htinfo.maisdwjsrwtdlr}</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>${htinfo.maisdwjsrdh}</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>${htinfo.maisdwjsrcz}</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>${htinfo.maisdwjsryzbm}</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>${htinfo.maisdwjsrkhyh}</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>${htinfo.maisdwjsrzh}</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>${htinfo.maisdwjsrnsrdjh}</td>
											</tr>

										</table>
									</td>
									<td rowspan="2">
									<div algin="left">经办人：</div>&nbsp;
									<br/><br/><br/><br/>
									
									鉴（公）证机构（章）<br/>年 月  日
									</td>
								</tr>
							</tbody>
						</table></td>

				</tr>
				<tr>					
					<td colspan="6" align="right"><font size="2">合同有效期：${htinfo.youxqxkssj} 至 ${htinfo.youxqxjssj}</font>
					</td>
				</tr>
				
				<tr>
					<td colspan="6" align="center">
						<s:if test="htinfo.zhuangt>2">
						<input id="dayin" class="noprint" type="button" name="" value="打印" onclick="pagesetup_null();document.all.WebBrowser.ExecWB(7,1) " />
						 </s:if>
						<input id="guanbi" class="noprint" type="button" name="" value="关闭" onclick="window.history.go(-1);window.close();" /> 										
					</td>
				</tr>

			</table>
		
	</div>	
</body>
</html>
